<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML>
<html lang="en">
<head>
<base href="<%=basePath%>">
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/css/bootstrap.min.css">
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/css/main.css">
<link rel="stylesheet"
	href="//apps.bdimg.com/libs/jqueryui/1.10.4/css/jquery-ui.min.css">
<script src="${pageContext.request.contextPath}/js/jquery.min.js"></script>
<script src="${pageContext.request.contextPath}/js/main.js"></script>
<script src="${pageContext.request.contextPath}/js/jqueryui.js"></script>
<script src="//apps.bdimg.com/libs/jqueryui/1.10.4/jquery-ui.min.js"></script>
<title>团购后台管理系统</title>

<script>
	$(function() {
		var URL = document.location.toString();
		console.log(URL)
		var arr1 = URL.split("=")[1];
		var id = arr1.split("&")[0];
		var adprice = URL.split("=")[3];
		var srcs = urls + "weChatPayAction/advertisingWeChatPay?id=" + id;
		$("#QRcodeid").attr("src", srcs);
		$("#perder_number").text(id);
		$("#sure_moneys").text(adprice);
		$("#order_much").text(adprice);
	})
</script>
<style>
.scrollbar1-1 {
	height: 170px
}

.main_div {
	min-width: 1000px;
}

.main_title>img {
	display: block;
	float: left;
	width: 40px;
	height: 100%;
	border-bottom: 2px solid #3c3c3c
}

.main_title>span {
	display: block;
	float: left;
	width: 100px;
	height: 100%
}

.payOrder_detail {
	width: 100%;
	height: 120px;
	background-color: #f2f2f2
}

.payOrder_title {
	width: 300px;
	height: 80px;
	line-height: 40px;
	float: left;
	margin-left: 40px;
	margin-top: 20px
}

.payOrder_money {
	width: 300px;
	height: 80px;
	line-height: 80px;
	float: right;
	font-size: 20px;
	margin-top: 20px
}

.chooseWechat {
	width: 100%;
	height: 40px;
}

.chooseWechat_border {
	width: 90%;
	margin: 0 auto;
	height: 100%;
	border: 2px solid #ff6600
}

.chooseWechat_border>img:first-child {
	width: 120px;
	height: 80%;
	float: left;
	margin-top: 4px;
	margin-left: 20px;
}

.chooseWechat_info {
	width: 200px;
	height: 100%;
	font-size: 12px;
	color: #ccc;
	line-height: 40px;
	float: left;
	margin-left: 20px
}

.sure_money {
	width: 200px;
	height: 100%;
	font-size: 16px;
	color: #3c3c3c;
	line-height: 40px;
	float: right;
}

.QRcode {
	height: 300px;
	width: 90%;
	margin: 0 auto;
	margin-top: 20px
}

.QRcode>img {
	width: 300px;
	height: 100%;
	float: left
}

.QRcode_info {
	height: 90px;
	width: 90%;
	margin: 0 auto;
	margin-top: 20px
}

.QRcode_info>img {
	width: 300px;
	height: 100%;
	float: left
}

#sure_moneys, #order_much {
	color: #ff6600
}
</style>
</head>
<body>
	<%@ include file="header.jsp"%>
	<%@ include file="left.jsp"%>
	<div id="index"
		style="position: absolute;left: 180px;top: 80px;bottom: 0;right: 0;">
		<section id="main">
			<div class="scrollbar1-1" id="style1-1">
				<div class="main_div" style="height:40px">
					<div class="main_title">
						<img src="${pageContext.request.contextPath}/images/bluelogo.png" /><span>微信支付</span>
					</div>
					<div class="payOrder_detail">
						<div class="payOrder_title">
							<span>订单编号：</span><span id="perder_number"></span></br> <span>订单详情：</span><span
								id="order_detail"> <%
 	String name = request.getParameter("name");
 	name = java.net.URLDecoder.decode(name, "UTF-8");
 %>
								<%=name%></span>
						</div>
						<div class="payOrder_money">
							<span>应付金额：￥</span><span id="order_much"></span>
						</div>
					</div>
				</div>

			</div>
			<div class="chooseWechat">
				<div class="chooseWechat_border">
					<img src="${pageContext.request.contextPath}/images/WePayLogo.png" />
					<img style="float:left; width:60px;height:60%;margin-top:8px"
						src="${pageContext.request.contextPath}/images/button.png" />
					<div class="chooseWechat_info">
						<span>亿万用户的选择，更快更安全</span>
					</div>
					<div class="sure_money">
						<span>支付&nbsp;<span id="sure_moneys"></span>&nbsp;元
						</span>
					</div>
				</div>
			</div>
			<div class="QRcode">
				<img id="QRcodeid" src="" />
			</div>
			<div class="QRcode_info">
				<img src="${pageContext.request.contextPath}/images/info.png" />
			</div>
		</section>
	</div>
</body>
</html>
